using System;

namespace FileStorage
{
    public abstract class Settings
    {

    }

    public class SystemConfig : Settings
    {
        public static string MySqlReadonlyConnection { get; set; }
        public static string MySqlConnection { get; set; }
        public static string Version { get; set; }
        public static string UploadPath { get; set; } = "/uploads";
    }

    public class ServerConfig : Settings
    {
        public static string VCLevel { get; set; }
        public static bool AllowChangePassword { get; set; }
        public static bool AllowSignUp { get; set; }
        public static bool EnableDownloadByZip { get; set; }
        public static bool MustLogin { get; set; }
    }

    public class AccountConfig : Settings
    {
        public static string defaultMaxSize { get; set; }
        public static string defaultMaxRate { get; set; }
    }

    public class AmazonS3Config: Settings
    {
        public static string AccessKeyId { get; set; }
        public static string SecretAccessKey { get; set; }
        public static string RegionName { get; set; }
        public static string DefaultBucket { get; set; }
    }
}
